package com.luming.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luming.entity.FinancialData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FinancialDataMapper extends BaseMapper<FinancialData> {
    
    @Select("SELECT * FROM financial_data WHERE fiscal_year = #{year}")
    List<FinancialData> findByFiscalYear(@Param("year") Integer year);
    
    @Select("SELECT * FROM financial_data WHERE data_name = #{name}")
    List<FinancialData> findByDataName(@Param("name") String name);
}